home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08SMP.ZIP / usr / samples / gnuplot / plot.m < prev   
Encoding:
Text File  |  1996-02-13  |  510 b   |  24 lines

  1. #include <pm/pm.h>
  2.  
  3.  
  4. #include "gnuplot.h"
  5. #include "controller.h"
  6.  
  7. main()
  8. {
  9.   StdApp     *application = [[StdApp alloc] init];
  10.   StdDialog  *mainDialog = [[StdDialog alloc] initWithId: IDD_MAIN];
  11.   Controller *controller = [[Controller alloc] init];
  12.  
  13.   [mainDialog createObjects];
  14.  
  15.   [mainDialog bindCommand: DID_OK withObject: controller
  16.                  selector: @selector(plot:)];
  17.  
  18.   [mainDialog runModalFor: nil];
  19.  
  20.   [controller free];
  21.   [mainDialog free];
  22.   [application free];
  23. }
  24.